package com.hh.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 小曾
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("total")//实际指定表名
public class Total {
        private int id;
        private Double temperature;
        private Double humidity;
        private Double light;
        private String sensorType;
        private Date startTime;

        public Total(Double temperature, Double humidity, Double light, String sensorType, Date startTime) {
                this.temperature = temperature;
                this.humidity = humidity;
                this.light = light;
                this.sensorType = sensorType;
                this.startTime = startTime;
        }
}
